package com.dhcc.sds.base.service;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.plugins.Page;
import com.dhcc.core.framework.base.service.IBaseService;
import com.dhcc.core.framework.result.node.ZTreeNode;
import com.dhcc.sds.base.entity.SdsQcfitemDicEntity;

/**
 * 表单值域字典表表数据服务层接口
 * 
 * @ClassName: ISdsQcfitemDicService
 * @Description: TODO
 * @author sunyingjie
 * @date 2021-03-22 10:10:47
 */
public interface ISdsQcfitemDicService  extends IBaseService<SdsQcfitemDicEntity> {
	
    List<SdsQcfitemDicEntity> page(Page<SdsQcfitemDicEntity> page,Map<String, Object> map);
    List<SdsQcfitemDicEntity> list(Map<String, Object> map);
    List<ZTreeNode> getItemDicTree(Long formItemId);
    List<SdsQcfitemDicEntity> listByItemId(Long formItemId);

    /**
     * 根据formItemId和code取值域字典描述
     * @param formItemId
     * @param code
     * @return
     */
    String getDicDesc(Long formItemId, String code);

}
